from PyQt6.QtCore import QSize
from PyQt6.QtWidgets import QCheckBox, QStyle


class MyCheckBox(QCheckBox):
    def __init__(self, parent=None):
        super(MyCheckBox, self).__init__(parent)

    def hitButton(self, point, ):
        extendedSize = self.size() + QSize(20, 20)  # 增大点击区域大小
        return True
